<template>
  <div class="address-main">
    <div class="address-header">
      <span @click="goBack"><van-icon name="arrow-left" /></span>
      <div class="center">我的订单</div>
    </div>
    <div class="table-nav">
      <van-tabs color="#002FFF" v-model="active">
        <van-tab title="全部">
          <div class="table-box">
            <div class="box">
              <div class="cell">
                <span class="left">流水号：</span>
                <div class="right">SC20240328133406235 <i class="el-icon-copy-document"></i></div>
              </div>
              <div class="cell">
                <span class="left">信息：</span>
                <div class="right">
                  <p>1个商品</p>
                  <p>来自 outdoor explorer</p>
                </div>
              </div>
              <div class="cell">
                <span class="left">金额：</span>
                <div class="right"><span style="color:#0000ff;font-weight: 600 ">$152.00</span></div>
              </div>
              <div class="cell" style="border: none">
                <span class="left">操作：</span>
<!--                <div class="right"><span style="color:#0000ff; ">查看详情</span></div>-->
              </div>
            </div>
          </div>
        </van-tab>
        <van-tab title="待付款">
          <div class="table-box">
            <div class="box">
              <div class="cell">
                <span class="left">流水号：</span>
                <div class="right">SC20240328133406235 <i class="el-icon-copy-document"></i></div>
              </div>
              <div class="cell">
                <span class="left">信息：</span>
                <div class="right">
                  <p>1个商品</p>
                  <p>来自 outdoor explorer</p>
                </div>
              </div>
              <div class="cell">
                <span class="left">金额：</span>
                <div class="right"><span style="color:#0000ff;font-weight: 600 ">$152.00</span></div>
              </div>
              <div class="cell" style="border: none">
                <span class="left">操作：</span>
                <div class="right"><span style="color:#0000ff; ">查看详情</span></div>
              </div>
            </div>
          </div>
        </van-tab>
        <van-tab title="待发货">
          <van-empty description="暂无数据" />
        </van-tab>
        <van-tab title="待收货">
          <van-empty description="暂无数据" />
        </van-tab>
        <van-tab title="待评价">
          <van-empty description="暂无数据" />
        </van-tab>
        <van-tab title="退货/售后">
          <van-empty description="暂无数据" />
        </van-tab>
      </van-tabs>
    </div>
  </div>
</template>

<script>
export default {
  data(){
    return{
      active:0
    }
  },
  methods:{
    goBack(){
      this.$router.go(-1)
    },
  }
}
</script>

<style scoped lang="scss">
.address-main{
  width: 100%;
  min-height: 100vh;
  background: #f6f6f6;
  .address-header{
    width: 100%;
    height: 45px;
    display: flex;
    background: #fff;
    justify-content: center;
    align-items: center;
    position: relative;
    span{
      position: absolute;
      left: 10px;
    }
    .center{
      width: 100%;
      height: 45px;
      text-align: center;
      line-height: 45px;
      font-size: 15px;
    }
  }
  .table-nav{
    width: 100%;
    .table-box{
      width: 100%;
      padding: 5%;
      box-sizing: border-box;
      .box{
        width: 100%;
        background: #fff;
        min-height: 200px;
        font-size: 14px;
        margin-bottom: 20px;
        padding: 5%;
        box-sizing: border-box;
        .cell{
          display: flex;
          align-items: center;
          width: 100%;
          min-height: 40px;
          border-bottom: 1px solid #f6f6f6;
          .left{
            display: flex;
            width: 100px;
          }
          .right{
            width: 100%;
            text-align: right;
            p{
              font-size: 12px;
              min-height: 20px;
            }
            p:nth-child(1){
              margin-top: 15px;

            }
            p:nth-child(2){
              color: #aaa;
              margin-bottom: 15px;
            }
            .span{
              color: #002FFF !important;
            }
          }
        }
      }
    }
  }
}


</style>
